package cn.mineserv.video.videoordersystem.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import cn.mineserv.video.videoordersystem.dao.MediaHistoryDao;
import cn.mineserv.video.videoordersystem.model.MediaHistory;
import cn.mineserv.video.videoordersystem.model.MediaHistoryExample;
@Service
public class MediaHistoryService extends ServiceImpl<MediaHistoryDao, MediaHistory> {

    
    public long countByExample(MediaHistoryExample example) {
        return baseMapper.countByExample(example);
    }
    
    public int deleteByExample(MediaHistoryExample example) {
        return baseMapper.deleteByExample(example);
    }
    
    public List<MediaHistory> selectByExample(MediaHistoryExample example) {
        return baseMapper.selectByExample(example);
    }
    
    public int updateByExampleSelective(MediaHistory record,MediaHistoryExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    
    public int updateByExample(MediaHistory record,MediaHistoryExample example) {
        return baseMapper.updateByExample(record,example);
    }
    
    public int updateBatch(List<MediaHistory> list) {
        return baseMapper.updateBatch(list);
    }
    
    public int updateBatchSelective(List<MediaHistory> list) {
        return baseMapper.updateBatchSelective(list);
    }
    
    public int batchInsert(List<MediaHistory> list) {
        return baseMapper.batchInsert(list);
    }
    
    public int insertOrUpdate(MediaHistory record) {
        return baseMapper.insertOrUpdate(record);
    }
    
    public int insertOrUpdateSelective(MediaHistory record) {
        return baseMapper.insertOrUpdateSelective(record);
    }
}
